<div align="left">&nbsp;<b><?=translate('title');?></b><br><br></div>

<?
        $params[sid] = $sid;
        $params[action] = "editServicePrices";
        $url = "$baseURL/$webDIR/?".encode_params($params);

        $data = get_reseller_service_prices($id);
				
?>
<table width="560">
  <tr>
    <td colspan=2><font class="text">
    <?=translate('edit_upgrades_desc');?>
    </td>
  </tr>
</table>
<br>
<?
if($errorMsg) {
  include ('errorMsg.html');       	                
}
if($okMsg) {
  include ('okMsg.html');
}else {
}
?>
<br>
<TABLE border=1 class='bTable' cellspacing='0' width='560'>
  <form action='<?=$url;?>' method='POST'>
        <TR>
   	<TH colspan='7'><?=translate('service_price');?></TH>
        </TR>
        <TR>
      		
      <TH height="22" width="92" nowrap><?=translate("service");?></TH>
      		
      <TH height="22" width="77" nowrap><?=translate("quantity");?></TH>
      		
      <TH height="22" width="88" nowrap><?=translate("retail_price");?></TH>
      <TH height="22" width="74" nowrap><?=translate("min_price");?></TH>
      		
      <TH height="22" width="78" nowrap><?=translate("max_price");?></TH>
      		
      <TH height="22" width="70" nowrap><?=translate("wholesale");?></TH>
      <TH height="22" width="51" nowrap><?=translate("profit");?></TH>
        </TR>        
	<TR>
		
      <td width="92"><?=translate('storage');?></td>
		
      <td width="77">400 MB</td>
		
      <td width="88" nowrap>$<input type=text size=2  name='data[<?=$data['disk_space']['product_id'];?>]' value='<?=monthly_price($data['disk_space']['price']);?>'>/mo </td>
      <td width="74">$<?=monthly_price($data['disk_space']['min_price']);?>
      </td>
		
      <td width="78">$<?=monthly_price($data['disk_space']['max_price']);?>
      </td>
		
      <td width="70">$<?=monthly_price($data['disk_space']['wholesale']);?> 
        
      </td>
		
      <td width="51">$<?=(monthly_price($data['disk_space']['price']) - monthly_price($data['disk_space']['wholesale']));?>
      </td>		
	</TR>
	<TR>
		
      <td width="92"><?=translate('traffic');?> 
      <td width="77">4 GB</td>
		
      <td width="88" nowrap>$<input type=text size=2  name='data[<?=$data['traffic']['product_id'];?>]' value='<?=monthly_price($data['traffic']['price']);?>'>/mo
      </td>
      <td width="74">$<?=monthly_price($data['traffic']['min_price']);?>
      </td>
		
      <td width="78">$<?=monthly_price($data['traffic']['max_price']);?> 
        
      </td>
		
      <td width="70">$<?=monthly_price($data['traffic']['wholesale']);?> 
        
      </td>
		
      <td width="51">$<?=(monthly_price($data['traffic']['price']) - monthly_price($data['traffic']['wholesale']));?> 
        
      </td>		
	</TR>	
	<TR>
		
      <td width="92"><?=translate('dom');?> 
      <td width="77">2 <?=translate('domain');?></td>
		
      <td width="88" nowrap>$<input type=text size=2  name='data[<?=$data['domain']['product_id'];?>]' value='<?=monthly_price($data['domain']['price']);?>'>/mo</td>
      <td width="74">$<?=monthly_price($data['domain']['min_price']);?>
      </td>
		
      <td width="78">$<?=monthly_price($data['domain']['max_price']);?>
        
      </td>
		
      <td width="70">$<?=monthly_price($data['domain']['wholesale']);?> 
        
      </td>
		
      <td width="51">$<?=(monthly_price($data['domain']['price']) - monthly_price($data['domain']['wholesale']));?>
        
      </td>		
	</TR>		
	<TR>
		
      <td width="92"><?=translate('ip_address');?>
      <td width="77">1 <?=translate('ip');?></td>
      <td width="88" nowrap>$<input type=text size=2  name='data[<?=$data['ip']['product_id'];?>]' value='<?=monthly_price($data['ip']['price']);?>'>/mo</td>
      <td width="74">$<?=monthly_price($data['ip']['min_price']);?>
      </td>
		
      <td width="78">$<?=monthly_price($data['ip']['max_price']);?> 
        
      </td>
		
      <td width="70">$<?=monthly_price($data['ip']['wholesale']);?>
        
      </td>
		
      <td width="51">$<?=(monthly_price($data['ip']['price']) - monthly_price($data['ip']['wholesale']));?> 
        
      </td>		
	</TR>
	<TR>
		
      <td width="92">MySQL
      <td width="77">3 <?=translate('db');?></td>
		
      <td width="88" nowrap>$<input type=text size=2  name='data[<?=$data['sql']['product_id'];?>]' value='<?=monthly_price($data['sql']['price']);?>'>/mo</td>
      <td width="74">$<?=monthly_price($data['sql']['min_price']);?>
      </td>
		
      <td width="78">$<?=monthly_price($data['sql']['max_price']);?> 
        
      </td>
		
      <td width="70">$<?=monthly_price($data['sql']['wholesale']);?> 
        
      </td>
      <td width="51">$<?=(monthly_price($data['sql']['price']) - monthly_price($data['sql']['wholesale']));?> 
        
      </td>		
	</TR>	
	<TR>
		
      <td width="92">MySQL <?=translate('storage');?> 
      <td width="77">10 <?=translate('mb');?></td>
		
      <td width="88" nowrap>$<input type=text size=2  name='data[<?=$data['sql_quota']['product_id'];?>]' value='<?=monthly_price($data['sql_quota']['price']);?>'>/mo</td>
      <td width="74">$<?=monthly_price($data['sql_quota']['min_price']);?>
      </td>
		
      <td width="78">$<?=monthly_price($data['sql_quota']['max_price']);?> 
        
      </td>
		
      <td width="70">$<?=monthly_price($data['sql_quota']['wholesale']);?> 
        
      </td>
		
      <td width="51">$<?=(monthly_price($data['sql_quota']['price']) - monthly_price($data['sql_quota']['wholesale']));?> 
        
      </td>		
	</TR>		
        <TR>

      <td width="92">SSH
      <td width="77"><?=translate('on');?></td>

      <td width="88" nowrap>$<input type=text size=2  name='data[<?=$data['ssh']['product_id'];?>]' value='<?=monthly_price($data['ssh']['price']);?>'>/mo</td>
      <td width="74">$<?=monthly_price($data['ssh']['min_price']);?>
      </td>

      <td width="78">$<?=monthly_price($data['ssh']['max_price']);?>

      </td>

      <td width="70">$<?=monthly_price($data['ssh']['wholesale']);?>

      </td>

      <td width="51">$<?=(monthly_price($data['ssh']['price']) - monthly_price($data['ssh']['wholesale']));?>

      </td>
	</tr>
	<tr>
      <td width="92"><?=translate('dom_reg');?>
      <td width="77">1</td>

      <td width="88" nowrap>$<input type=text size=2  name='data[<?=$data['com/net/org/us/info/biz']['product_id'];?>]' value='<?=yearly_price($data['com/net/org/us/info/biz']['price']);?>'></td>
      <td width="74">$<?=yearly_price($data['com/net/org/us/info/biz']['min_price']);?>
      </td>

      <td width="78">$<?=yearly_price($data['com/net/org/us/info/biz']['max_price']);?>

      </td>

      <td width="70">$<?=yearly_price($data['com/net/org/us/info/biz']['wholesale']);?>

      </td>

      <td width="51">$<?=(yearly_price($data['com/net/org/us/info/biz']['price']) - yearly_price($data['com/net/org/us/info/biz']['wholesale']));?>

      </td>
	</tr>
        <TR>
         <TD align='center' colspan='7'>
           <input type='submit' value='<?=translate('submit');?>'>
         </TD>
        </TR>
</form>
</TABLE>

<br>
<table width="560">
  <tr> 
    <td colspan=2><font class="text"><?=translate('warn_msg');?>
      </font></td>
  </tr>
</table>
